package model;

import java.sql.Timestamp;

/**
 * VNovelContent entity. @author MyEclipse Persistence Tools
 */

public class VNovelContent implements java.io.Serializable {

	private Integer novelid;
	private String novelname;
	private Integer novelphoto;
	private String abstrac;
	private String userid;
	private String photourl;
	private String chaptername;
	private String textcontent;
	private Integer chapterid;
	private Boolean charge;
	private String typename;
	private String nickname;
	private Timestamp createtime;
	private Integer ordernum;
	private Boolean auditstatus;

	// Constructors

	/** default constructor */
	public VNovelContent() {
	}

	/** minimal constructor */
	public VNovelContent(Integer novelid, String novelname, String abstrac,
			String userid, String photourl, String chaptername,
			String textcontent, Integer chapterid, String typename,
			String nickname) {
		this.novelid = novelid;
		this.novelname = novelname;
		this.abstrac = abstrac;
		this.userid = userid;
		this.photourl = photourl;
		this.chaptername = chaptername;
		this.textcontent = textcontent;
		this.chapterid = chapterid;
		this.typename = typename;
		this.nickname = nickname;
	}

	/** full constructor */
	public VNovelContent(Integer novelid, String novelname,
			Integer novelphoto, String abstrac, String userid, String photourl,
			String chaptername, String textcontent, Integer chapterid,
			Boolean charge, String typename, String nickname,
			Timestamp createtime, Integer ordernum, Boolean auditstatus) {
		this.novelid = novelid;
		this.novelname = novelname;
		this.novelphoto = novelphoto;
		this.abstrac = abstrac;
		this.userid = userid;
		this.photourl = photourl;
		this.chaptername = chaptername;
		this.textcontent = textcontent;
		this.chapterid = chapterid;
		this.charge = charge;
		this.typename = typename;
		this.nickname = nickname;
		this.createtime = createtime;
		this.ordernum = ordernum;
		this.auditstatus = auditstatus;
	}

	// Property accessors

	public Integer getNovelid() {
		return this.novelid;
	}

	public void setNovelid(Integer novelid) {
		this.novelid = novelid;
	}

	public String getNovelname() {
		return this.novelname;
	}

	public void setNovelname(String novelname) {
		this.novelname = novelname;
	}

	public Integer getNovelphoto() {
		return this.novelphoto;
	}

	public void setNovelphoto(Integer novelphoto) {
		this.novelphoto = novelphoto;
	}

	public String getAbstrac() {
		return this.abstrac;
	}

	public void setAbstrac(String abstrac) {
		this.abstrac = abstrac;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPhotourl() {
		return this.photourl;
	}

	public void setPhotourl(String photourl) {
		this.photourl = photourl;
	}

	public String getChaptername() {
		return this.chaptername;
	}

	public void setChaptername(String chaptername) {
		this.chaptername = chaptername;
	}

	public String getTextcontent() {
		return this.textcontent;
	}

	public void setTextcontent(String textcontent) {
		this.textcontent = textcontent;
	}

	public Integer getChapterid() {
		return this.chapterid;
	}

	public void setChapterid(Integer chapterid) {
		this.chapterid = chapterid;
	}

	public Boolean getCharge() {
		return this.charge;
	}

	public void setCharge(Boolean charge) {
		this.charge = charge;
	}

	public String getTypename() {
		return this.typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	public Integer getOrdernum() {
		return this.ordernum;
	}

	public void setOrdernum(Integer ordernum) {
		this.ordernum = ordernum;
	}

	public Boolean getAuditstatus() {
		return this.auditstatus;
	}

	public void setAuditstatus(Boolean auditstatus) {
		this.auditstatus = auditstatus;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VNovelContent))
			return false;
		VNovelContent castOther = (VNovelContent) other;

		return ((this.getNovelid() == castOther.getNovelid()) || (this
				.getNovelid() != null && castOther.getNovelid() != null && this
				.getNovelid().equals(castOther.getNovelid())))
				&& ((this.getNovelname() == castOther.getNovelname()) || (this
						.getNovelname() != null
						&& castOther.getNovelname() != null && this
						.getNovelname().equals(castOther.getNovelname())))
				&& ((this.getNovelphoto() == castOther.getNovelphoto()) || (this
						.getNovelphoto() != null
						&& castOther.getNovelphoto() != null && this
						.getNovelphoto().equals(castOther.getNovelphoto())))
				&& ((this.getAbstrac() == castOther.getAbstrac()) || (this
						.getAbstrac() != null && castOther.getAbstrac() != null && this
						.getAbstrac().equals(castOther.getAbstrac())))
				&& ((this.getUserid() == castOther.getUserid()) || (this
						.getUserid() != null && castOther.getUserid() != null && this
						.getUserid().equals(castOther.getUserid())))
				&& ((this.getPhotourl() == castOther.getPhotourl()) || (this
						.getPhotourl() != null
						&& castOther.getPhotourl() != null && this
						.getPhotourl().equals(castOther.getPhotourl())))
				&& ((this.getChaptername() == castOther.getChaptername()) || (this
						.getChaptername() != null
						&& castOther.getChaptername() != null && this
						.getChaptername().equals(castOther.getChaptername())))
				&& ((this.getTextcontent() == castOther.getTextcontent()) || (this
						.getTextcontent() != null
						&& castOther.getTextcontent() != null && this
						.getTextcontent().equals(castOther.getTextcontent())))
				&& ((this.getChapterid() == castOther.getChapterid()) || (this
						.getChapterid() != null
						&& castOther.getChapterid() != null && this
						.getChapterid().equals(castOther.getChapterid())))
				&& ((this.getCharge() == castOther.getCharge()) || (this
						.getCharge() != null && castOther.getCharge() != null && this
						.getCharge().equals(castOther.getCharge())))
				&& ((this.getTypename() == castOther.getTypename()) || (this
						.getTypename() != null
						&& castOther.getTypename() != null && this
						.getTypename().equals(castOther.getTypename())))
				&& ((this.getNickname() == castOther.getNickname()) || (this
						.getNickname() != null
						&& castOther.getNickname() != null && this
						.getNickname().equals(castOther.getNickname())))
				&& ((this.getCreatetime() == castOther.getCreatetime()) || (this
						.getCreatetime() != null
						&& castOther.getCreatetime() != null && this
						.getCreatetime().equals(castOther.getCreatetime())))
				&& ((this.getOrdernum() == castOther.getOrdernum()) || (this
						.getOrdernum() != null
						&& castOther.getOrdernum() != null && this
						.getOrdernum().equals(castOther.getOrdernum())))
				&& ((this.getAuditstatus() == castOther.getAuditstatus()) || (this
						.getAuditstatus() != null
						&& castOther.getAuditstatus() != null && this
						.getAuditstatus().equals(castOther.getAuditstatus())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getNovelid() == null ? 0 : this.getNovelid().hashCode());
		result = 37 * result
				+ (getNovelname() == null ? 0 : this.getNovelname().hashCode());
		result = 37
				* result
				+ (getNovelphoto() == null ? 0 : this.getNovelphoto()
						.hashCode());
		result = 37 * result
				+ (getAbstrac() == null ? 0 : this.getAbstrac().hashCode());
		result = 37 * result
				+ (getUserid() == null ? 0 : this.getUserid().hashCode());
		result = 37 * result
				+ (getPhotourl() == null ? 0 : this.getPhotourl().hashCode());
		result = 37
				* result
				+ (getChaptername() == null ? 0 : this.getChaptername()
						.hashCode());
		result = 37
				* result
				+ (getTextcontent() == null ? 0 : this.getTextcontent()
						.hashCode());
		result = 37 * result
				+ (getChapterid() == null ? 0 : this.getChapterid().hashCode());
		result = 37 * result
				+ (getCharge() == null ? 0 : this.getCharge().hashCode());
		result = 37 * result
				+ (getTypename() == null ? 0 : this.getTypename().hashCode());
		result = 37 * result
				+ (getNickname() == null ? 0 : this.getNickname().hashCode());
		result = 37
				* result
				+ (getCreatetime() == null ? 0 : this.getCreatetime()
						.hashCode());
		result = 37 * result
				+ (getOrdernum() == null ? 0 : this.getOrdernum().hashCode());
		result = 37
				* result
				+ (getAuditstatus() == null ? 0 : this.getAuditstatus()
						.hashCode());
		return result;
	}

}